package com.zhou.message.model;

import com.zhou.util.FileUtil;
import lombok.Data;

import java.io.Serializable;

@Data
public class AttachInfo implements Serializable {
    private Integer attachId;
    private String fileName;
    private String fileSize;
    private Long size;

    public void setSize(Long size) {
        this.size = size;
        this.fileSize = FileUtil.sizeToChinese(size);
    }

}
